package cn.findviewbydream.evil.app.controller

import cn.findviewbydream.evil.app.service.LoginService
import cn.findviewbydream.evil.main.entity.EmployeeEntity
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.HttpSession

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.app.controller
 * 时间：16-12-24
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：登录Controller
 ********************************************/
@RestController
class LoginAppController(@Autowired private val loginService: LoginService)
{
    @RequestMapping("/app/login", method = arrayOf(RequestMethod.POST))
    fun login(session: HttpSession, id: String, name: String): EmployeeEntity?
            = loginService.login(session, id, name)
}


















